﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Application.ApiAdminServices;

/// <summary>
/// 输入Mapper
/// 邮件发送记录
/// </summary>
public class ApiEmailSendRecordMapperOut : IRegister
{
    public void Register(TypeAdapterConfig config)
    {
        // 示例
        //config.ForType<xxxx,xxxOut>()
        //.Map(dest => dest.MigrationId, src => src.MigrationId)//
        //.Map(dest => dest.Id, src => src.Id)//
        //;

        // Description 邮件发送记录
        //config.ForType<SysEmailSendRecord,ApiEmailSendRecordOut>()

        #region 公共字段

        //.Map(dest => dest.Id, src => src.Id)//  ID
        //.Map(dest => dest.ExtensionData, src => src.ExtensionData)//  扩展字段
        //.Map(dest => dest.CreatorUserId, src => src.CreatorUserId)//  创建用户ID
        //.Map(dest => dest.CreatorUserName, src => src.CreatorUserName)//  创建用户
        //.Map(dest => dest.CreationTime, src => src.CreationTime.ToStringLongDate())// 创建时间
        //.Map(dest => dest.UpdateUserId, src => src.UpdateUserId)//  更新用户ID
        //.Map(dest => dest.UpdateUserName, src => src.UpdateUserName)//  更新用户
        //.Map(dest => dest.UpdateTime, src => src.UpdateTime.ToStringLongDate())// 更新时间
        //.Map(dest => dest.IsDeleted, src => src.IsDeleted)//  默认假删除
        //.Map(dest => dest.IsDeletedName, src => src.IsDeleted?"是":"否")//  默认假删除
        //.Map(dest => dest.DeletedUserId, src => src.DeletedUserId)//  删除用户ID
        //.Map(dest => dest.DeletedUserName, src => src.DeletedUserName)//  删除用户
        //.Map(dest => dest.DeletedTime, src => src.DeletedTime.ToStringLongDate())// 删除时间

        #endregion 公共字段

        //.Map(dest => dest.TemplateType, src => src.TemplateType)//  邮件模板类型
        //.Map(dest => dest.Subject, src => src.Subject)//  主题
        //.Map(dest => dest.Content, src => src.Content)//  内容
        //.Map(dest => dest.SenderName, src => src.SenderName)//  邮件发送名称
        //.Map(dest => dest.SenderEmail, src => src.SenderEmail)//  邮件发送账号
        //.Map(dest => dest.ReceiveName, src => src.ReceiveName)//  收件人
        //.Map(dest => dest.ReceiveEmail, src => src.ReceiveEmail)//  收件邮箱
        //.Map(dest => dest.State, src => src.State)//  邮件发送状态
        //.Map(dest => dest.SendResult, src => src.SendResult)//  发送结果
        //.Map(dest => dest.SendNum, src => src.SendNum)//  发送次数
        //.Map(dest => dest.SendMaxNum, src => src.SendMaxNum)//  最大发送次数
        //.Map(dest => dest.VerCode, src => src.VerCode)//  验证码
        //.Map(dest => dest.IsUse, src => src.IsUse)//  是否使用
        //.Map(dest => dest.SourceDataId, src => src.SourceDataId)//  关联ID
        //.Map(dest => dest.SourceDataType, src => src.SourceDataType)//  来源数据类型

        #region 自定义

        //.Map(dest => dest.IsUseName, src => src.IsUse?"是":"否")//  是否使用
        //.Map(dest => dest.ExpireTime, src => src.ExpireTime.ToStringLongDate())//  过期时间

        #endregion 自定义

        //;
    }
}